﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace M3G {
    public static class Mathf {
        public static float Epsilon = 0.00001f;

        public static T Max<T> (this T val1, T val2, T val3) where T : IComparable<T> {
            var tmp = (val1.CompareTo (val2) > 0) ? val1 : val2;
            return (val3.CompareTo (tmp) > 0) ? val3 : tmp;
        }

    }
}
